﻿using AutoMapper;
using B.S.BaseData.Domain;
using B.S.BaseData.Write.Api.Application.Command;
using B.S.BaseData.Write.Api.Application.Command.MainCommand;
using B.S.BaseData.Write.Api.Application.Command.MenuCommand;
using B.S.BaseData.Write.Api.Application.Command.RoleCommand;

namespace B.S.BaseData.Write.Api
{
    public class AutoMapperProfile : Profile
    {
        public AutoMapperProfile()
        {
            CreateMap<Main, AddMainCommand>().ReverseMap();
            CreateMap<Main, UpdateMainCommand>().ReverseMap();
            CreateMap<Role, AddRoleCommand>().ReverseMap();
            CreateMap<Role, DelRoleCommand>().ReverseMap();
            CreateMap<UserRole, AddUserRoleCommand>().ReverseMap();
            CreateMap<Menu, AddMenuCommand>().ReverseMap();
            CreateMap<Menu, UpdateMenuCommand>().ReverseMap();
            CreateMap<Leave, AddLeaveCommand>().ReverseMap();
            CreateMap<WF_Recode, DelRecodeCommand>().ReverseMap();
            CreateMap<Leave, UpdateRecodeCommand>().ReverseMap();
        }
    }
}
